<?php
/**
 * 
 * @author lucas
 *
 */
class Artesanato extends P4A{
	
	public $menu;
	
	public function __construct($cache = null){
		parent::__construct($cache);
		$menu = $this->build('p4a_menu','menu');
		$menu_cadastros = $menu->addItem('cadastros','Cadastros');
		$menu_cadastros->addItem('projetos','Projetos')
			->implement('onclick',$this,'menuClick');
		$menu_cadastros->addItem('cursos','Cursos')
			->implement('onclick',$this,'menuClick');
		$menu_cadastros->addItem('alunos','Alunos')
			->implement('onclick',$this,'menuClick');
		$this->openMask('Main');
	}
	
	/**
	 * 
	 * @param P4A_Menu $menu
	 */
	public function menuClick($menu){
		$this->openMask($menu->getName());
	}
}